﻿using System.Web.Security;
using SklepISI.Core.Models;

namespace SklepISI.Core.Interfaces
{
    public interface IUserService
    {
        bool ValidUser(string login, string password);
        MembershipCreateStatus CreateUser(UserModel model);
        int GetRoleID(string username);
        bool ChangeUserRole(string userName, int roleID);
        bool RemoveUser(string userName);
        bool ChangePassword(string userName, string oldPassword, string newPassword);
        UserModel GetUser(string userName);
        UserModel GetUserById(int id);
    }
}